package com.yun.many.auth.model.translator;

import com.yun.many.auth.dao.entity.Resource;
import com.yun.many.auth.model.req.MenuEditReq;
import com.yun.many.auth.model.resp.MenuVo;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface MenuTranslator {
    MenuVo toVo(Resource resource);

    Resource toEntity(MenuEditReq req);
}
